<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 15:32
 */

namespace util\validate\rules;

/**
 * 手动正则验证
 *
 * Class Regex
 * @package validate\rules
 */
class Regex extends BaseRule
{
    public function verify()
    {
        return preg_match($this->params, $this->value);
    }
}
